package zust.javaee.service;

import zust.javaee.dao.hibernate.BaseDao;
import zust.javaee.dto.announcement.AnnouncementDto;
import zust.javaee.entity.Tannouncement;

import java.util.List;

/**
 * Created by liy on 2017/1/9.
 */
public interface AnnouncementService extends BaseService<Tannouncement> {

    AnnouncementDto transToDto(Tannouncement tannouncement);
    List<AnnouncementDto> transToDtos(List<Tannouncement> tannouncements);



    Tannouncement getAnnouncemantById(Integer id);
    List<Tannouncement> getAnnouncementByCorporId(Integer corporId);
    List<Tannouncement> getAnnouncementByCorporId(Integer corporId, Integer num);

}
